package primeNumbers;

public class Main {
    public static void main(String[] args) {
        EratosthenesSieve s = new EratosthenesSieve(10000, 1);
        long startTime = System.currentTimeMillis();
        int[] primeNumbers = s.getAllPrimes();
        long endTime = System.currentTimeMillis();
        for (int primeNumber : primeNumbers) {
            System.out.println(primeNumber);
        }
        System.out.println("Total: " + primeNumbers.length + " prime numbers");
        System.out.println("It took " + (endTime - startTime) + " ms");
    }
}
